<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查看爬虫结果</title>
    <link rel="stylesheet" type="text/css" href="../static/admin/css/base.css">


    <link rel="stylesheet" type="text/css" href="../static/admin/css/changelists.css">


    <script type="text/javascript" src="/static/admin/jsi18n.js"></script>

    <script type="text/javascript" src="/static/admin/js/vendor/jquery/jquery.js"></script>
    <script type="text/javascript" src="/static/admin/js/jquery.init.js"></script>
    <script type="text/javascript" src="/static/admin/js/core.js"></script>
    <script type="text/javascript" src="/static/admin/js/admin/RelatedObjectLookups.js"></script>
    <script type="text/javascript" src="/static/admin/js/actions.js"></script>
    <script type="text/javascript" src="/static/admin/js/urlify.js"></script>
    <script type="text/javascript" src="/static/admin/js/prepopulate.js"></script>
    <script type="text/javascript" src="/static/admin/js/vendor/xregexp/xregexp.js"></script>


    <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" type="text/css" href="/static/admin/css/responsive.css">

    <meta name="robots" content="NONE,NOARCHIVE">


</head>
<body class=" app-houseting model-product change-list"
      data-admin-utc-offset="28800">

<!-- Container -->
<div id="container">


    <!-- Header -->
    <div id="header">
        <div id="branding">

            <h1 id="site-name"><a href="/#">数据查看以及分析</a></h1>

        </div>


        <div id="user-tools">


        </div>


    </div>
    <!-- END Header -->


    <!-- Content -->
    <div id="content" class="flex">


        <div id="toolbar">
            <form id="changelist-search" method="get">
                <div><!-- DIV needed for valid HTML -->
                    <label for="searchbar"><img src="/static/admin/img/search.svg" alt="Search"></label>
                    <input type="text" size="40" name="q" value="" id="searchbar" autofocus="">
                    <input type="hidden" name="name" value="{{ name }}">
                    <input type="submit" value="搜索">

                </div>
            </form>
        </div>

        <div id="content-main">

            <ul class="object-tools">
                <li>
                    <form action="{% url "search" %}" method="post" id="login-form">
                        {% csrf_token %}

                        <input type="hidden" name="name" value="{{ name }}">
                        <div class="submit-row">
                            <input type="submit" value="数据分析">
                        </div>
                    </form>
                </li>
            </ul>


            <div class="module" id="changelist">

                <div class="results">
                    <table id="result_list">
                        <thead>
                        <tr>

                            <th scope="col" class="sortable column-ID">


                                <div class="text"><a href="?o=1">作者</a></div>
                                <div class="clear"></div>
                            </th>

                            <th scope="col" class="sortable column-standard">


                                <div class="text"><a href="?o=4">转发</a></div>
                                <div class="clear"></div>
                            </th>
                            <th scope="col" class="sortable column-detailed">


                                <div class="text"><a href="?o=5">评论</a></div>
                                <div class="clear"></div>
                            </th>
                            <th scope="col" class="sortable column-brand">


                                <div class="text"><a href="?o=6">点赞</a></div>
                                <div class="clear"></div>
                            </th>

                            <th scope="col" class="sortable column-brand">


                                <div class="text"><a href="?o=6">内容</a></div>
                                <div class="clear"></div>
                            </th>

                        </tr>
                        </thead>
                        <tbody>

                        {% for datum in data %}
                            <tr>
                                <th class="field-ID">
                                    <a href="#">{{ datum.author }}</a>
                                </th>

                                <td class="field-detailed">{{ datum.move }}</td>
                                <td class="field-brand">

                                    {{ datum.comment }}

                                </td>
                                <td class="field-detailed">{{ datum.good }}</td>
                                <td class="field-remarks">{{ datum.content }}</td>
                            </tr>
                        {% endfor %}


                        </tbody>
                    </table>
                </div>


            </div>
        </div>


        <br class="clear">
    </div>
    <!-- END Content -->

    <div id="footer"></div>
</div>
<!-- END Container -->


<p class="paginator">
    {% load index_dic %}

    {% if data.has_previous %}
        <a href="{% url "search" %}?name={{ name }}&page={{ data.number|add:-1 }}">上一页</a>
    {% endif %}
    <span class="this-page">当前第{{ data.number }}页</span>
    {% if data.has_next %}
        <a href="{% url "search" %}?name={{ name }}&page={{ data.next_page_number }}">下一页</a>
    {% endif %}
</p>


</body>
</html>